package com.month.ai.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.month.ai.entity.AiInteractionLog;
import org.springframework.ai.chat.messages.Message;

import java.util.List;


public interface AiInteractionLogService extends IService<AiInteractionLog> {


    //存储对话
    public void SaveMessages(String conversationId,List<Message> messages);


    //查询数据库获取指定会话ID的最后lastN条日志
    public List<Message> getMessages(String sessionId, int lastN);
}
